package com.liveneo.adapter.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liveneo.adapter.base.entity.PrpmUploadTask;
import com.liveneo.adapter.base.mapper.PrpmUploadTaskMapper;
import com.liveneo.adapter.mobile.service.PrpmUploadTaskService;

/**
  * @Description: 
  * @author liveneo-shuqw
  * @date 2016年11月21日 上午11:32:00
  * @Copyright: Copyright (c) 2016 
  * @Company: 北京朗泰
  * @version 3.3
  */
@Service
public class PrpmUploadTaskServiceImpl implements PrpmUploadTaskService{

	@Autowired
	private PrpmUploadTaskMapper prpmUploadTaskMapper;
	
	/**
	  * @Title: save
	  * @Description: 
	  * @param @param uploadTask
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int save(PrpmUploadTask uploadTask) {
		return prpmUploadTaskMapper.insert(uploadTask);
	}

	/**
	  * @Title: update
	  * @Description: 
	  * @param @param uploadTask
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public int update(PrpmUploadTask uploadTask) {
		return prpmUploadTaskMapper.updateByPrimaryKeySelective(uploadTask);
	}

	/**
	  * @Title: selectByPrpmUploadTask
	  * @Description: TODO
	  * @param @param uploadTask
	  * @param @return 设定文件
	  * @return 返回类型
	  * @throws
	  */
	@Override
	public PrpmUploadTask selectByPrpmUploadTask(PrpmUploadTask uploadTask) {
		return prpmUploadTaskMapper.selectByPrpmUploadTask(uploadTask);
	}

}
